package org.apache.flink.runtime.rest.messages.taskmanager;

import org.apache.flink.runtime.rest.messages.MessageParameters;
import org.apache.flink.runtime.rest.messages.MessagePathParameter;
import org.apache.flink.runtime.rest.messages.MessageQueryParameter;

import java.util.Collection;
import java.util.Collections;

/**
 * Message parameter for a TaskManager specific handler. The message parameters define the
 * TaskManager id as a path parameter.
 */
public class ResourceProviderMessageParameters extends MessageParameters {

    public final ResourceProviderIdPathParameter resourceProviderIdParameter =
            			new ResourceProviderIdPathParameter();

    @Override
    public Collection<MessagePathParameter<?>> getPathParameters() {
        return Collections.singleton(resourceProviderIdParameter);
    }

    @Override
    public Collection<MessageQueryParameter<?>> getQueryParameters() {
        return Collections.emptySet();
    }
}
